草庐IT

java - Camel Websocket 组件无法安装到 Karaf

全部标签

ruby - 如何列出已安装 gem 的内容?

一些gem(例如“sup”)不仅在gem环境gemdir中安装文件,而且在其他地方-例如/usr/local/bin。如何列出属于给定gem的所有文件? 最佳答案 你要找的是:gemcontentsgem_name_here 关于ruby-如何列出已安装gem的内容?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/20161932/

ruby - 如何安装旧版本的 Jekyll?

我想安装Jekyll1.5.1版(在Mac上)。是否有可能做到这一点?我发现了一些关于能够降级的信息,但我很难相信没有办法只安装旧版本。谢谢! 最佳答案 您可以像这样在Gemfile中指定确切的版本:gem'jekyll','1.5.1'或者从命令行安装特定版本:geminstalljekyll-v1.5.1 关于ruby-如何安装旧版本的Jekyll?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com

ruby - 通过 RVM 在 OS X 10.11.6 上安装 ruby​​-2.3.0 时缺少符号

我无法通过rvm安装ruby​​-2.3.0,而它与ruby​​-2.2.0一起工作。错误信息如下Errorrunning'__rvm_make-j1',showinglast15linesof/Users/Rookie/.rvm/log/1472865655_ruby-2.3.0/make.logcompiling./missing/explicit_bzero.ccompiling./missing/setproctitle.ccompilingdmyenc.clinkingminirubyconfig.status:creatingruby-runner.cdyld:lazysy

ruby-on-rails - Gem::Ext::BuildError:错误:无法构建 gem native 扩展 Bcrypt-Ruby

我正在制作一个Rails应用程序并刚刚升级到Yosemite,我认为在更新期间一切都崩溃了。昨晚当我将所有代码checkingithub时一切正常。我昨晚更新了我的电脑到优胜美地。今天我运行了geminstallbcrypt-ruby并且一切都崩溃了。我有;运行xcodebuild-license更新的bundler运行brewinstallrbenvruby​​-buildrbenv-gem-rehash以获取最新的ruby​​运行brewinstallcoreutils但这并没有奏效。环境OSXYosemite10.10、rbenv0.4.0、ruby2.1.3p242(2014-

ruby-on-rails - 安装 ruby​​ gems 后,运行新的 gem 返回 "Could not find"错误

全新的Ubuntu10.04安装:我在让我的gem安装过程正常运行时遇到了一些问题。每当我安装gem时,它都会通过一个漂亮、直接的过程,没有任何问题:$geminstallrailsSuccessfullyinstalledrails-3.2.21geminstalled然后验证版本,也许是一个简单的“rails-v”?不:$rails-v/home/pragone/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in`to_specs':Couldnotfindrailti

ruby - 无法将 Hash 转换为 String?

我正在尝试解析来自Wordnik的API的JSON响应。这是用Sinatra构建的。我不断收到错误“/word的TypeError”“无法将Hash转换为String”。我是否错误地使用了json解析器?这是我的代码:get'/word'doresp=Wordnik.words.get_random_word(:hasDictionaryDef=>'true',:maxCorpusCount=>20,:minLength=>10)result=JSON.parse(resp)word=result.wordreturnword.to_send 最佳答案

ruby - 在 Mountain Lion 上安装 Ruby 时出现问题 - ruby​​ 1.9.3 不会编译

我之前看过很多关于此的帖子,并按照他们的说明进行操作,但没有任何效果。我将在下面概述我所做的事情,以及我所遵循的说明-如果您有任何建议,我将不胜感激!我遵循了以下安装说明:http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac我已经为OSXMountainLion下载了X代码,并安装了gcc编译器:$gcc--versioni686-apple-darwin11-llvm-gcc-4.2(GCC)4.2.1(BasedonAppleInc.build5658)(LLVMbuild2336.11.00)Copyri

ruby - 使用 Ruby 设置(无法加载此类文件 json/pure)

您好,我正在开发APIhttps://developers.supportbee.com/platform/overview做的时候bin/sbapp新APP_SLUG我得到了错误/home/nitesh/.gem/ruby/1.9.1/gems/bundler-1.2.3/lib/bundler/spec_set.rb:90:in`blockinmaterialize':Couldnotfindmulti_json-1.3.6inanyofthesources(Bundler::GemNotFound)之后我再次尝试geminstallmulti_json然后又报错Successfu

ruby-on-rails - 为 Ruby on Rails 3.1.0 安装 mysql2 gem

我收到这个错误Gemfileswillremaininstalledin/home/mark/.bundler/tmp/28288/gems/mysql2-0.2.17forinspection.Resultsloggedto/home/mark/.bundler/tmp/28288/gems/mysql2-0.2.17/ext/mysql2/gem_make.outAnerroroccuredwhileinstallingmysql2(0.2.17),andBundlercannotcontinue.Makesurethatgeminstallmysql2-v'0.2.17'succ

ruby - Errno::EACCES:通过 gitlab 安装 gems 时权限被拒绝

我正在尝试设置gitlab并因此使用sudo从另一个用户帐户安装一些gem,但我经常收到Permissiondenied错误。sudo-ugitlab-Hbundleinstall--deployment--withoutdevelopmenttestpostgres>Using...(alotofsuccessfulgemsthere)>Usingpygments.rb(0.3.2)fromhttps://github.com/gitlabhq/pygments.rb.git(atmaster)>Errno::EACCES:Permissiondenied-pygments.rb-0